package week01;


public class T005 {
	public static long gcd(long x,long y) {
		while(y!=0)
		{
			long temp = x%y;
			x=y;
			y=temp;
		}
		return x;
	}
	
	public static long lcm(long x,long y) {
		return x/gcd(x, y)*y;
	}
	public static void main(String[] args) {
		int n=20;
		long ans = 1;
		for(int i=2;i<=n;i++) {
			ans = lcm(ans, (long)i);
		}
		System.out.println(ans);
	}
}
